import PROMPTS_TEMPLATE from '../template/json/prompts-zh-hant.json';


export const ZhHantMsg = {
    MIXLY_LIB_ARDUINO_LLM_INIT: '初始化',
    MIXLY_LIB_ARDUINO_LLM_CHATBOT: '對話機器人',
    MIXLY_LIB_ARDUINO_LLM_API_KEY: 'API私鑰',
    MIXLY_LIB_ARDUINO_LLM_MODEL: '模型',
    MIXLY_LIB_ARDUINO_LLM_SYSTEM_PROMPT: '系統提示字',
    MIXLY_LIB_ARDUINO_LLM_SET_API_KEY: '設定API私鑰',
    MIXLY_LIB_ARDUINO_LLM_SET_TIMEOUT: '設定請求逾時時間',
    MIXLY_LIB_ARDUINO_LLM_SET_MAX_RETRIES: '設定最大重試次數',
    MIXLY_LIB_ARDUINO_LLM_SET_SYSTEM_PROMPT: '設定係統提示字',
    MIXLY_LIB_ARDUINO_LLM_SELECT_MODEL: '選擇模型',
    MIXLY_LIB_ARDUINO_LLM_MODEL_PROVIDER: '模型提供者',
    MIXLY_LIB_ARDUINO_LLM_MODEL_NAME: '模型名稱',
    MIXLY_LIB_ARDUINO_LLM_ENABLE_HISTORY_MESSAGES: '保留歷史對話記錄',
    MIXLY_LIB_ARDUINO_LLM_SET_HISTORY_MESSAGES_NUM: '設定歷史對話記錄最大保留數量',
    MIXLY_LIB_ARDUINO_LLM_CHAT: '開啟對話',
    MIXLY_LIB_ARDUINO_LLM_USER_PROMPT: '使用者提示字',
    MIXLY_LIB_ARDUINO_LLM_MAX_TOKENS: '產生Token上限',
    MIXLY_LIB_ARDUINO_LLM_CHAT_STREAM: '開啟對話 (串流輸出)',
    MIXLY_LIB_ARDUINO_LLM_CONTENT_CALLBACK: '結果輸出回呼',
    MIXLY_LIB_ARDUINO_LLM_REASONING_CONTENT_CALLBACK: '思維鏈輸出回呼',
    MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE: [],
    MIXLY_LIB_ARDUINO_LLM_PROVIDERS: [
        ['DeepSeek', 'DeepSeek'],
        ['ChatGPT', 'ChatGPT'],
        ['阿里雲百煉', 'AliyunBaiLian'],
        ['百川智能', 'BaiChuanAI'],
        ['零一萬物', 'LingYiWanWu'],
        ['月之暗面', 'MoonShot'],
        ['矽基流動', 'SiliconFlow'],
        ['騰訊混元', 'TencentHunYuan'],
        ['字節火山方舟', 'VolcEngine'],
        ['自訂', 'Custom']
    ],
    MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE_MAP: {}
};

for (let item of PROMPTS_TEMPLATE) {
    ZhHantMsg.MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE.push([item['act'], item['act']]);
    ZhHantMsg.MIXLY_LIB_ARDUINO_LLM_PROMPTS_TEMPLATE_MAP[item['act']] = {
        name: item.cmd.toUpperCase(),
        prompt: item['prompt']
    };
}

export const ZhHantCatgories = {
    'mixly-lib-arduino-llm': '對話機器人'
};